package happy.town.case_JdbcUtils;

import java.sql.Connection;
import java.sql.PreparedStatement;


public class testJdbcUtils1 {
    public static void main(String[] args) throws Exception {
        Connection conn = JdbcUtils01.getconnection();
        String sql = "update emp set job=? where ename=?";
        PreparedStatement pstm = conn.prepareStatement(sql);
        pstm.setString(1, "女神");
        pstm.setString(2, "吴倩莲");
        pstm.executeUpdate();
        JdbcUtils01.release(null, pstm, conn);
        System.out.println(conn);
        System.out.println("修改成功");
    }
}
